import request from "@/utils/request";

// 查询药品出库明细列表 (分页)
export function selectPageDrugExportDetail(query) {
    return request({
        url: "/drug/drugExportDetail/selectPage",
        method: "get",
        params: query,
    });
}

// 查询药品出库明细列表 (不分页)
export function listDrugExportDetail(query) {
    return request({
        url: "/drug/drugExportDetail/list",
        method: "get",
        params: query,
    });
}

// 查询药品出库明细详细
export function getDrugExportDetail(detailId) {
    return request({
        url: "/drug/drugExportDetail/" + detailId,
        method: "get",
    });
}

// 新增药品出库明细
export function addDrugExportDetail(data) {
    return request({
        url: "/drug/drugExportDetail",
        method: "post",
        data: data,
    });
}

// 修改药品出库明细
export function updateDrugExportDetail(data) {
    return request({
        url: "/drug/drugExportDetail",
        method: "put",
        data: data,
    });
}

// 删除药品出库明细
export function delDrugExportDetail(detailId) {
    return request({
        url: "/drug/drugExportDetail/" + detailId,
        method: "delete",
    });
}
